package designpattern.responsibility.dem01;

/**
 * @author cyt
 * @create 2020-07-20 14:21
 */

/**
 * 抽象的请求
 *
 * @author Administrator
 */
public abstract class BaseApprover {

    BaseApprover approver;

    String name;

    public BaseApprover(String name) {
        this.name = name;
    }

    public void setApprover(BaseApprover baseApprover) {
        this.approver = baseApprover;
    }

    /**
     * 处理审批请求的方法，得到一个请求, 处理是子类完成，因此该方法做成抽象
     */
    public abstract void processRequest(Request  purchaseRequest);

}
